package day230902;

import java.util.Scanner;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/9/2 19:53
 * 小美的元素删除 0%
 */
public class Main04 {

    final static int MOD_NUM = (int) (10e9 + 7);

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {
            int n = in.nextInt(); // 数组的长度
            int k = in.nextInt(); // 删除元素的数量
            // 录入数据
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) {
                arr[i] = in.nextInt();
            }
            System.out.println(k * 2);
        }
        in.close();
    }
}
